package com.itheima.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.itheima.dto.SmsCouponParam;
import com.itheima.pojo.SmsCoupon;

import java.util.List;

public interface SmsCouponApi {
    void create(SmsCoupon smsCoupon);

    boolean deleteById(Integer couponId);

    void updateById(SmsCoupon smsCoupon);

    IPage<SmsCoupon> list(String name, Integer type, Integer pageNum, Integer pageSize);

    SmsCoupon getSmsCouponById(Integer id);

    List<SmsCoupon> getAllSmsCoupon();

    boolean isExist(SmsCouponParam smsCouponParam);
}
